package me.bincker.formwork.web

import com.fasterxml.jackson.databind.ObjectMapper
import me.bincker.formwork.web.modules.system.entity.Role
import me.bincker.formwork.web.modules.system.entity.User
import me.bincker.formwork.web.modules.system.repository.IRoleRepository
import me.bincker.formwork.web.modules.system.service.IRoleService
import me.bincker.formwork.web.modules.system.service.IUserService
import org.hibernate.collection.spi.PersistentCollection
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.BeanUtils
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.context.MessageSource
import org.springframework.data.domain.Example
import org.springframework.test.context.junit4.SpringRunner
import org.springframework.transaction.annotation.Transactional
import java.util.*

@RunWith(SpringRunner::class)
@SpringBootTest
class ApplicationTests{
    @Autowired
    private lateinit var userService: IUserService

    @Autowired
    private lateinit var roleService: IRoleService

    @Autowired
    private lateinit var roleRepository: IRoleRepository

    @Autowired
    private lateinit var objectMapper: ObjectMapper

    @Test
    fun test(){
        val user = userService.getOne("1")
//        println(user)
    }
}
